<div class="form-group">
    <label for="name" class="col-sm-2 control-label">订货人</label>
    <div class="col-sm-10">
        #@textInput("text","foodDistribute.name","name","请输入订货人...",foodDistribute.name??'')
    </div>
</div>
<div class="form-group">
    <label for="mobile" class="col-sm-2 control-label">联系电话</label>
    <div class="col-sm-10">
        #@textInput("text","foodDistribute.mobile","mobile","请输入外卖订货人联系电话...",foodDistribute.mobile??'')
    </div>
</div>
<div class="form-group">
    <label for="item" class="col-sm-2 control-label">点餐内容</label>
    <div class="col-sm-10">
        #@textAreaInput("foodDistribute.item","item","请输入点餐内容...",foodDistribute.item??'')
    </div>
</div>

<div class="form-group">
    <label for="address" class="col-sm-2 control-label">送货地址</label>
    <div class="col-sm-10">
        #@textInput("text","foodDistribute.address","address","请输入外卖送货地址...",foodDistribute.address??'新疆乌鲁木齐市新市区')
    </div>
</div>
<div class="form-group">
    <label for="send_id" class="col-sm-2 control-label">配送状态</label>
    <div class="col-sm-10">
        <select  name="foodDistribute.status" class="form-control">
            <option value="0" #if(foodDistribute??&&foodDistribute.status==0)selected#end>等待配送</option>
            <option value="1" #if(foodDistribute??&&foodDistribute.status==1)selected#end>正在配送</option>
            <option value="2" #if(foodDistribute??&&foodDistribute.status==2)selected#end>成功送达</option>
            <option value="3" #if(foodDistribute??&&foodDistribute.status==3)selected#end>取消配送</option>
        </select>
    </div>
</div>
<div class="form-group">
    <label for="send_id" class="col-sm-2 control-label">送货人</label>
    <div class="col-sm-10">
        <select id="" name="foodDistribute.send_id" class="form-control">
            #for(x:objs)
                <option value="#(x.id??'')" #if(foodDistribute??&&foodDistribute.status==foodDistribute.send_id)selected#end>#(x.name??'')</option>
            #end
        </select>
    </div>
</div>

<div class="form-group">
    <div class="col-sm-offset-8 col-sm-10">
        <button type="button" id="submitBtn" class="btn btn-primary">点我保存</button>
        <input type="hidden" name="foodDistribute.id" value="#(foodDistribute.id??'')" id="id">
    </div>
</div>